package cate.game.role.res.furniturecall.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBFurnitureCall;
import cate.game.res.furniturecall.FurnitureCallLog;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "手办定制记录 返回")
public class FurnitureLogsResp implements MsgOutput {
    @NoteField("个人记录 <手办id>")
    public List<Integer> selfLogs;

    @NoteField("全服记录")
    public List<FurnitureCallLog> callLogs;

    public FurnitureLogsResp(){

    }

    public FurnitureLogsResp(Role role) {
        selfLogs = role.getRes().furnitureCall.selfLogs;
        callLogs = role.getGame().res.furnitureCall.getLogs();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBFurnitureCall.LOG_RESP;
    }
}
